package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity3 extends AppCompatActivity {

    private Button mButton;
    private EditText mAccountEditText;
    private final String TAG = "MainActivity3";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);

        mButton = findViewById(R.id.account_btn);
        mAccountEditText = findViewById(R.id.edittext1);
        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               String text = mAccountEditText.getText().toString();
               Log.e(TAG, text);
               Intent intent = new Intent(MainActivity3.this, MainActivity4.class);
               startActivity(intent);
            }
        });
    }
}